home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / Tetris / Source / RCS / TetMatrix.h,v < prev    next >
Encoding:
Text File  |  1975-04-26  |  2.2 KB  |  168 lines

  1. head     1.6;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.6
  10. date     92.03.01.10.27.06;  author melling;  state Exp;
  11. branches ;
  12. next     1.5;
  13.  
  14. 1.5
  15. date     92.03.01.05.07.49;  author melling;  state Exp;
  16. branches ;
  17. next     1.4;
  18.  
  19. 1.4
  20. date     92.02.28.05.19.06;  author melling;  state Exp;
  21. branches ;
  22. next     1.3;
  23.  
  24. 1.3
  25. date     91.12.16.17.22.16;  author melling;  state Exp;
  26. branches ;
  27. next     1.2;
  28.  
  29. 1.2
  30. date     91.12.07.07.49.18;  author melling;  state Exp;
  31. branches ;
  32. next     1.1;
  33.  
  34. 1.1
  35. date     91.12.07.03.37.06;  author melling;  state Exp;
  36. branches ;
  37. next     ;
  38.  
  39.  
  40. desc
  41. @Tetris 1.1
  42. @
  43.  
  44.  
  45. 1.6
  46. log
  47. @Release 1.3
  48. @
  49. text
  50. @
  51. #import "Piece.h"
  52. #import "Minimatrix.h"
  53.  
  54. #define TETRIS_COLUMNS    10
  55. #define TETRIS_ROWS    25
  56. // There four different ways to view a piece: up, down, left, right
  57.  
  58. #define MIN_LEVEL    0
  59. #define MAX_LEVEL    9
  60.  
  61. @@interface TetMatrix:Minimatrix
  62. {
  63.     BOOL pieceVisible;
  64.     BOOL active;
  65.     id thePiece;                      // The current piece; a Piece Object 
  66.     id scoreKeeper;
  67.     id anmBitmap;
  68.     id showNext;                      // The next piece object: NextMatrix.m
  69.      id aCheater;
  70.      id controlBox;                  // The box containing all of the controls
  71.     float level;
  72.     DPSTimedEntry timedEntryNum;
  73.     BOOL gameRunning;
  74.      BOOL colorWindow;              // canStoreColor?
  75.     double teDelay;                  // Determines how fast a piece will fall.
  76.      float anm_gameover_delta;      // The # pixels to move "Game Over" at a time
  77.      id randomFields;
  78. }
  79.  
  80. - initFrame:(const NXRect *)frameRect;
  81. - setupRandomFill:(int)max;
  82. - (BOOL)acceptsFirstResponder;
  83. - drawSelf:(const NXRect *)rects :(int)rectCount;
  84. - keyDown:(NXEvent *)theEvent;
  85.  
  86. - removeFilledRows;
  87.  
  88. - setPieceVisible:(BOOL)flag;
  89. - setScoreKeeper:keeper;
  90. - newGame:(int)theLevel;
  91. - pause:sender;
  92. - continue:sender;
  93. - stop:sender;
  94.  
  95. - startTimedEntry;
  96. - stopTimedEntry;
  97.  
  98. - free;
  99.  
  100. @@end
  101. @
  102.  
  103.  
  104. 1.5
  105. log
  106. @*** empty log message ***
  107. @
  108. text
  109. @d28 1
  110. a28 1
  111.  
  112. @
  113.  
  114.  
  115. 1.4
  116. log
  117. @*** empty log message ***
  118. @
  119. text
  120. @d27 2
  121. d32 1
  122. a32 1
  123.  
  124. @
  125.  
  126.  
  127. 1.3
  128. log
  129. @*** empty log message ***
  130. @
  131. text
  132. @a7 1
  133. #define NUM_BITMAPS    4
  134. d21 1
  135. @
  136.  
  137.  
  138. 1.2
  139. log
  140. @Tetris 1.2
  141. @
  142. text
  143. @d20 2
  144. a21 1
  145.     id showNext;                      // The next piece.
  146. d24 1
  147. a24 1
  148.     BOOL teRunning;
  149. @
  150.  
  151.  
  152. 1.1
  153. log
  154. @Initial revision
  155. @
  156. text
  157. @d7 1
  158. d17 1
  159. a17 1
  160.     id thePiece;
  161. d20 1
  162. a20 1
  163.     id showNext;
  164. d24 2
  165. a25 1
  166.     double teDelay;
  167. @
  168.